<?php
include "includeFiles.php";
include "page.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $C['Title'];?></title>
<Link href="../uploadfile/ico/<?php echo $C['ICO'];?>" rel="Shortcut Icon">
<meta name="Keywords" content="<?php echo $C['Keywords'];?>">
<meta name="description" content="<?php echo $C['Description'];?>">
<Meta name="Copyright" Content="<?php echo $C['CopyRight'];?>">
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link charset="utf-8" rel="stylesheet" href="css/alipay.css">
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="jquery-1.8.3.min.js"></script>
<script src="./admin/js/checkSubmit.js"></script>
<script language="javascript">
	 function checkContent(dom){
	 if(!check_empty(dom.oldpsw,"旧密码不能为空！")) return false;
	if(!check_empty(dom.user_pws,"密码不能为空！")) return false;
	if(!check_empty(dom.user_pws2,"确认密码不能为空！")) return false;
	if(!check_empty(dom.authcode,"验证码不能为空！")) return false;
		return true;
	 }
</script>
<script type="text/javascript">
<!--

$(document).ready(function(){
	//$(".mh_zx_ct:gt(0)").hide();
	var opt=$(".mh_zx_box ul li");
	opt.hover(function(){
		//alert($(this));
		$(this).addClass('one').siblings().removeClass('one');
		var opt_index=opt.index(this);
		$(".mh_zx_ct").eq(opt_index).show().siblings().hide();
	});
	$(".nav_green").mouseover(function(){
		$("#nav_more").show();
	}).mouseout(function(){
		var timer=window.setTimeout(function(){
			$("#nav_more").hide();	
		},1000)
		$(".nav_green li").mouseover(function(){
			window.clearTimeout(timer);
			//$("#nav_more").show();
		})
	})
	$(".nav_green li").mouseout(function(){
		$("#nav_more").hide();	
	})

});
//-->
</script>
<link rel="stylesheet" type="text/css" media="all" href="./admin/js/jscalendar/skins/aqua/theme.css" title="Aqua" />
<link rel="alternate stylesheet" type="text/css" media="all" href="./admin/js/jscalendar/calendar-system.css" title="system" />
<script type="text/javascript" src="./admin/js/jscalendar/calendar.js"></script>
<script type="text/javascript" src="./admin/js/jscalendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="./admin/js/jscalendar/lang/cn_utf8.js"></script>
<script type="text/javascript" src="./admin/js/jscalendar/calendar-setup.js"></script>
</head>
<body id="mainbody">
<?php include_once('header.php');?>
<?

$msg = $info->memberMsg();   //获取会员资料

if($_POST['action'] == 'modifypsw') $info->modifypsw($_POST);
?>
<!--#头部导航-->
<!--主体布局-->
<div class="main">
  <div class="gehang"></div>
  <div class="Hy">
    <?php include_once('member_left.php');?>
    <?php 	$arr = array('0'=>'未处理','1'=>'未处理','2'=>'处理中','3'=>'已处理');?>
    <div class="HyRight">
      <div class="ContentRight"><?php $memermsg =  $info->memberMsg();?>
        <div class="bord10">
          <div class="dptit2">欢迎回来！尊敬的客户　　　<span class="cs">账户可使用余额：<?=$memermsg['money']?></span></div>
          <DIV class=project2>
          <form action="" method="get" style="line-height:28px;">
            交易单号 <input name="orderNum" type="text" /><Br/>
              充值金额 <input name="price" type="text" /><Br/>
               处理状态 
               
               
               <select name="state"><Br/>
               <? if($arr){
				   foreach($arr as $key=>$value){
				   ?>
                 <option value="<?=$key?>"><?=$value?></option>
                 <? }}?>
               </select><Br/>
                               申请时间
                 <input name="startime"  id="startime" type="text" />
              <span></span>
              
      <img src="./admin/js/jscalendar/img.gif" id="f_trigger_c3"
           style="cursor: pointer; border: 1px solid red;"
           title="Date selector"
           onmouseover="this.style.background='red';"
           onmouseout="this.style.background=''" />
      <script type="text/javascript">
          Calendar.setup({
              inputField     :    "startime",
              ifFormat       :    "%Y-%m-%d",
              button         :    "f_trigger_c3",
              align          :    "Tl",
              singleClick    :    false
          });
      </script>
                 
                 ~
                <input name="endtime" id="endtime" type="text" />
              <span></span>
      <img src="./admin/js/jscalendar/img.gif" id="f_trigger_c2"
           style="cursor: pointer; border: 1px solid red;"
           title="Date selector"
           onmouseover="this.style.background='red';"
           onmouseout="this.style.background=''" />
      <script type="text/javascript">
          Calendar.setup({
              inputField     :    "endtime",
              ifFormat       :    "%Y-%m-%d",
              button         :    "f_trigger_c2",
              align          :    "T2",
              singleClick    :    false
          });
      </script><br/>
                 <input name="" type="submit" value="查询" />
          </form>
          <br/>
            <TABLE width="100%">
              <TBODY>
                <TR>
                <TH width="15%">编号</TH>
				 <TH class=oneleft width="15%">交易单号</TH>
                  <TH class=oneleft width="20%">充值金额</TH>
                  <TH class=oneleft width="20%">处理状态</TH>
                  <TH width="15%">申请时间</TH>
                    <TH width="15%">操作</TH>
                 
                </TR>
             	<?php 
				if($orderNum) $con .= " and orderNum  like  '%".$orderNum."%'";
				if($state) $con .= " and state  = '".$state."'";
				if($price) $con .= " and price  = '".$price."'";
				if($endtime && $startime) $con .= "and guest_date between  ".strtotime($startime)."and  ".strtotime($endtime)."'";
				
		$SQL="SELECT * FROM `hy_b_cj`  where  memberID = ".$_SESSION['user_id']." $con  ";
		$result=mysql_query($SQL);
		$total=@mysql_num_rows($result);
		_PAGEFT($total,20);
		if($total==0) echo "<h3>对不起！没有相关资料</h3>";
		  $SQL2=$SQL." order by `id` desc limit $firstcount,$displaypg  ";
		$result=mysql_query($SQL2);
		while($value=@mysql_fetch_array($result)){
		?>
				
                <TR class=r>
                <td><?=$value['id'];?></td>
				 <TD><?=$value['orderNum'];?></TD>
                    <TD><?=$value['price'];?></TD>
                  <TD class=rg><? echo $arr[$value['state']];?></TD>
				   <TD><?=date("Y-m-d H:i:s",$value['createdate'])?></TD>
                    <TD><A href="cjview.php?id=<?=$value['id']?>">查看详细</A></TD>
                </TR>
				
				     <? } ?>   
              </TBODY>
            </TABLE>
          </DIV>
          <DIV id=pages>
            <?php echo $pagenav; ?>
          </DIV>
        </div>
      </div>
    </div>
  </div>
  <div class="gehang"></div>
  <div style="width:980px;height:100%;overflow:hidden;margin-top:10px"> <img src="images/copy_line.jpg" /><br />
    <br />
    <br />
    <img src="images/copy.jpg" />
    <?php include_once('help.php');?>
  </div>
  <img src="images/copy_line.jpg" /> </div>
</div>
<!--#主体布局-->
<div class="clear"></div>
<?php include_once('footer.php');?>
</body>
</html>
